package com.augurit.gzcgwsp.ywcmn.service;

import java.util.List;
import com.augurit.common.base.service.ICrudService;
import com.augurit.gzcgwsp.ywcmn.web.form.BaseDistrictForm;
/**
 * 地区配置表
 * @author Administrator
 *
 */
public interface IBaseDistrictService extends ICrudService<BaseDistrictForm, Long>{
	//获得ID\NAME
	public List getValue(String parentDistrictId);
	public List getValue();
	/**
	 * 通过区名称获取区ID
	 * @param districtName
	 * @return districtId
	 */
	public Long getBaseDistrictIdByDistrictName(String districtName);
	
	/**
	 * 通过ID获取层次  返回1，为【区】；返回2，为【街道】
	 * @param id
	 * @return districtLevel
	 */
	public Integer getDistrictLevelById(Long id);
	
	/**
	 * 通过区的名称和区级别，模糊查询区的id
	 * @param districtName 区名称
	 * @return id
	 */
	public Long getBaseDistrictIdByDistrictNameAndDistrictLevel(String districtName);
}
